<?php
declare (strict_types = 1);

namespace app\admin\controller;

use think\Request;

class Upload
{
    public function img(Request $request)
    {
        $file = $request->file('file');

        // 上传到本地服务器
        $savename = \think\facade\Filesystem::putFile( 'topic', $file);
    }
}
